package com.shop.cloud.dao.system;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shop.cloud.common.mybatis.MybatisDao;
import com.shop.cloud.domain.system.SysResource;

public interface ExtSysRoleDao extends MybatisDao<SysResource>{

	int insertRoleModule(Map<String, Object> params);
	
	int insertUserRole(Map<String, Object> params);
	
	int removeUserRole(Map<String, Object> params);
	
	int removeUserId(Long user_id);
	
	List<String> findUserRole(Map<String, Object> params);

	List<String> findRole(Map<String, Object> params);
	
	List<Map<String, Object>> list();
	
	int removeByRoleId( @Param(value = "roleId") Long roleId);

	void removeByResourceId(Map<String, Object> params);
	
}